package cn.ghb.eshop.sys.users.entity;

import cn.ghb.eshop.sys.basic.entity.BasicEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * @author Clown
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@TableName("user")
public class User extends BasicEntity implements Serializable {

    private static final long serialVersionUID = 7760156559089549344L;

    @TableField(value = "username")
    private String username;

    @TableField(value = "password")
    private String password;

    /**
     * 是否已启用
     */
    @TableField(value = "is_enabled")
    @Builder.Default
    private Boolean enabled = false;

}
